<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            margin: auto;
            padding: 15px;
            border: 2px solid black;
            width: 1000px;
        }

        .box2 {
            margin-top: 20px;

        }

        .box2 span {
            margin-right: 110px;
        }
    </style>
</head>

<body>
    <script>
        let obj = {
            goods: '小米',
            name: '小米10青春版',
            num: 100,
            weight: '500',
            address: '赣州师范高等专科学校'
        }
        obj.name = '小米10 PLUS'
        obj.color = 'pink'
        document.write(`
        <div class="box">
        <div>
            <span>${obj.goods}</span>
        </div>
        <div class="box2">
            <span>${obj.name}</span>
            <span>${obj.num}</span>
            <span>${obj.weight}</span>
            <span>${obj.color}</span>
            <span>${obj.address}</span>
        </div>
        </div>
        `)
    </script>
</body>

</html>